﻿using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CaltechSoft.Service.EntityFW.Entity
{
    [Table("UserProfile")]
    public class User : IdentityUser
    {
        [NotMapped]
        public string FullName
        {
            get
            {
                return (FirstName ?? string.Empty) + " " + (LastName ?? string.Empty);
            }
        }

        public string Tel { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string BillingAddress { get; set; }
        public string BillingPOBox { get; set; }
        public string BillingZipCode { get; set; }
        public string BillingCity { get; set; }
        public string BillingCountry { get; set; }
        public bool IsDeleted { get; set; }
    }
}
